return g_object_ref (pending->out_tmpfile);
}
-void
-_ostree_fetcher_stream_uri_async (OstreeFetcher *self,
+static void
+ostree_fetcher_stream_uri_async (OstreeFetcher *self,
SoupURI *uri,
guint64 max_size,
GCancellable *cancellable,
pending = ostree_fetcher_request_uri_internal (self, uri, TRUE, max_size, cancellable,
callback, user_data,
- _ostree_fetcher_stream_uri_async);
+ ostree_fetcher_stream_uri_async);
if (SOUP_IS_REQUEST_HTTP (pending->request))
{
on_request_sent, pending);
}
-GInputStream *
-_ostree_fetcher_stream_uri_finish (OstreeFetcher *self,
+static GInputStream *
+ostree_fetcher_stream_uri_finish (OstreeFetcher *self,
GAsyncResult *result,
GError **error)
{
GSimpleAsyncResult *simple;
OstreeFetcherPendingURI *pending;
- g_return_val_if_fail (g_simple_async_result_is_valid (result, (GObject*)self, _ostree_fetcher_stream_uri_async), FALSE);
+ g_return_val_if_fail (g_simple_async_result_is_valid (result, (GObject*)self, ostree_fetcher_stream_uri_async), FALSE);
simple = G_SIMPLE_ASYNC_RESULT (result);
if (g_simple_async_result_propagate_error (simple, error))
{
FetchUriSyncData *data = user_data;
- data->result_stream = _ostree_fetcher_stream_uri_finish ((OstreeFetcher*)object,
+ data->result_stream = ostree_fetcher_stream_uri_finish ((OstreeFetcher*)object,
result, data->error);
g_main_loop_quit (data->loop);
}
data.loop = loop;
data.error = error;
- _ostree_fetcher_stream_uri_async (fetcher, uri,
- max_size,
- cancellable,
- fetch_uri_sync_on_complete, &data);
+ ostree_fetcher_stream_uri_async (fetcher, uri,
+ max_size,
+ cancellable,
+ fetch_uri_sync_on_complete, &data);
run_mainloop_monitor_fetcher (&data);
if (!data.result_stream)
GAsyncResult *result,
GError **error);
-void _ostree_fetcher_stream_uri_async (OstreeFetcher *self,
- SoupURI *uri,
- guint64 max_size,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-
-GInputStream *_ostree_fetcher_stream_uri_finish (OstreeFetcher *self,
- GAsyncResult *result,
- GError **error);
-
gboolean _ostree_fetcher_contents_membuf_sync (OstreeFetcher *fetcher,
SoupURI *uri,
gboolean add_nul,